package com.gitee.solon.admin.service.impl;

import com.gitee.solon.admin.mapper.AccountMapper;
import com.gitee.solon.admin.model.Account;
import com.gitee.solon.admin.service.AccountService;
import com.mybatisflex.solon.service.impl.ServiceImpl;
import org.apache.ibatis.solon.annotation.Db;
import org.noear.solon.annotation.ProxyComponent;

import java.util.List;

/**
 * @author: ChenGZ
 * @date: 2023-08-08 9:17
 */
@ProxyComponent
public class AccountServiceImpl extends ServiceImpl<AccountMapper,Account> implements AccountService {

    @Db("db1")
    AccountMapper accountMapper;

    @Override
    public List<Account> selectAll() {
        return accountMapper.selectAll();
    }

    @Override
    public List<Account> getAccountList() {
        return accountMapper.getAccountList();
    }
}
